package com.nh.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.SequenceGenerator;
import javax.persistence.Transient;

/**
 * 实体基类
 * 
 * @author 李兴建
 * 
 */
@MappedSuperclass
public class BaseEntity implements Serializable {
	private static final long serialVersionUID = 3987594758926706282L;
	private int id;
     /*
	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "XNKY_BASE_IDENTITY")
	@SequenceGenerator(name = "XNKY_BASE_IDENTITY", initialValue = 1000000, allocationSize = 1)
	*/
	@Transient
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

}
